//
//  UIView+Frame.m
//  DCH-BaiSiBuDeJie
//
//  Created by apple on 16/10/22.
//  Copyright © 2016年 xiaomage. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)

- (CGFloat)DCH_x
{
    return  self.frame.origin.x;
}
- (void)setDCH_x:(CGFloat)DCH_x
{

    CGRect frame =self.frame;
    frame.origin.x =DCH_x;
    self.frame =frame;
}

- (CGFloat)DCH_y
{

    return self.frame.origin.y;
}
- (void)setDCH_y:(CGFloat)DCH_y
{
    CGRect frame =self.frame;
    frame.origin.y =DCH_y;
    self.frame =frame;

}

- (CGFloat)DCH_width
{
    return self.frame.size.width;

}
- (void)setDCH_width:(CGFloat)DCH_width
{
    CGRect frame =self.frame;
    frame.size.width =DCH_width;
    self.frame =frame;

}

- (CGFloat)DCH_height
{
    return self.frame.size.height;

}

- (void)setDCH_height:(CGFloat)DCH_height
{
    CGRect frame  =self.frame;
    frame.size.height =DCH_height;
    self.frame =frame;

}
@end
